package io.github.ex;

import io.github.ex.util.CommandManager;
import io.github.ex.util.ScriptOutputStream;

import java.io.PrintStream;
import java.util.Arrays;
import java.util.HashSet;
import java.util.logging.Level;

public class Main {
    public static final String compile_version = "OpenEX_ScriptCompile_JavaEditionPlus_v0.1.0";
    public static final String runtime_version = "OpenEX_ScriptRuntime_JavaEditionPlus_v0.1.0";
    static ScriptOutputStream output = new ScriptOutputStream();
    static HashSet<String> s = new HashSet<>();
    static {
        s.add("function");
        s.add("value");
        s.add("local");
        s.add("global");
        s.add("if");
        s.add("else");
        s.add("while");
        s.add("return");
        s.add("false");
        s.add("true");
        s.add("include");
        s.add("this");
        s.add("null");
        s.add("elif");
        s.add("break");
    }
    public static boolean isKey(String ss){
        return s.contains(ss);
    }

    public static ScriptOutputStream getOutput() {
        return output;
    }

    public static void main(String[] args) {
        //args = new String[]{"-filename","main.exf,script.exf","-loadlib","plugin.jar"};
        //CommandManager.command(args);

        System.setOut(new PrintStream(new PPStream(Level.INFO,System.out,System.err)));
        //System.setErr(new PrintStream(new PPStream(Level.INFO,System.out,System.err)));

        System.out.println("A");
    }
}
